//
//  ViewController.m
//  27-Block练习-播放按钮
//
//  Created by 曹曹 on 16/8/19.
//  Copyright © 2016年 曹曹. All rights reserved.
//

#import "ViewController.h"
#import "PlayView.h"

@interface ViewController ()
@property (weak, nonatomic) IBOutlet PlayView *playView;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"back"]];
    [self.playView play:^(UIButton *play) {
        NSLog(@"play");
    } pause:^(UIButton *pause) {
        NSLog(@"pause");
    }];
    [self.playView last:^(UIButton *last) {
        NSLog(@"last");
    } next:^(UIButton *next) {
        NSLog(@"next");
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
